GtkEntry: add a "tabs" property for setting a PangoTabArray in the layout.
authorAndrew Walton <awalton@gnome.org>
Thu, 15 Aug 2013 18:34:31 +0000 (11:34 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 19 Aug 2013 17:43:32 +0000 (13:43 -0400)
commit19be4edbea1b0527366b94e69c1fa53f19b977ea
treebf77fc016fadd4c1d17484d6a31dab9356840f76
parenta864f9d052aa66430b5db572b9bb740b5beeb9a8
GtkEntry: add a "tabs" property for setting a PangoTabArray in the layout.

I'm currently working on porting view::FieldEntry (from libview) to C for use in
upstream GTK+. FieldEntry is a widget which allows users to enter structured
text such as IPv4 addresses or serial numbers. The way that FieldEntry
delineates the fields within the entry is with tabstops, using PangoTabArray
entries to precisely position the fields and delimiters. Because GtkEntry
rebuilds its internal PangoLayout fairly frequently, this requires a property in
the entry that will set the tabs on the layout whenever that happens. This API
looks very similar to one in GtkTextView.

Patch by David Trowbridge <trowbrds@gmail.com>. Updated for Gtk+ 3.10.

https://bugzilla.gnome.org/show_bug.cgi?id=697399
docs/reference/gtk/gtk3-sections.txt
gtk/gtkentry.c
gtk/gtkentry.h